package com.alkaid.commons.param.user;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Pattern;

/**
 * @author Kylin
 * 发送验证码参数类
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class SmsParam {
    @Pattern(regexp = "^((13[0-9])|(14[579])|(15[^4])|(18[0-9])|(17[0135678]))[0-9]{8}$", message = "手机号格式错误")
    private String mobile;
    @Pattern(regexp = "(reg)|(login)|(forget)", message = "sms参数错误")
    private String type;
}
